package org.example.demo;

import org.example.demo.config.AppConfig;
import org.example.demo.service.UserService;
import org.example.spring.ApplicationContext;

/**
 * @Author: qiu
 * @Date: 2025/11/18/17:16
 */
public class DemoTest {
    public static void main(String[] args) {
        // 创建非懒加载单例bean
        ApplicationContext applicationContext = new ApplicationContext(AppConfig.class);
        UserService userService = (UserService) applicationContext.getBean("userService");
        userService.test();
    }
}
